package cn.tx.service.Impl;

import cn.tx.dao.GraDao;
import cn.tx.dao.GradeDao;
import cn.tx.model.Gra;
import cn.tx.model.Grade;
import cn.tx.service.GraService;
import cn.tx.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GraServiceImpl implements GraService {

    @Autowired
    private GraDao graDao;

    @Override
    public int addGra(Gra gra) {
        return graDao.addGra(gra);
    }

    @Override
    public List<Gra> findList(Map<String, Object> querymap) {
        return graDao.findList(querymap);
    }

    @Override
    public List<Gra> findAll() {
        return graDao.findAll();
    }

    @Override
    public int findTotal(Map<String, Object> querymap) {
        return graDao.findTotal(querymap);
    }

    @Override
    public int UpdateGraById(Gra gra) { return graDao.UpdateGraById(gra); }

    @Override
    public int delete(String ids) {
        return graDao.delete(ids);
    }

}
